In C, initialization of a multidimensional array can have left most dimensions as optional. Except for the leftmost dimension, all other dimensions must be specified....
The C exit(), abort(), and assert() functions are all used to terminate a C program but each of them works differently from the other. In this article, we will learn about exit, abort, and assert functions and their use in C programming language....
There are various ways to overload Operators in C++ by implementing any of the following types of functions:...
We all know that a function in C can return only one value. So how do we achieve the purpose of returning multiple values.
Well, first take a look at the declaration of a function....
Given a Linked List of length n and block length k rotate in a circular manner towards right/left each block by a number d. If d is positive rotate towards right else rotate towards left....
Lex is a computer program that generates lexical analyzers and was written by Mike Lesk and Eric Schmidt. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in the C programming language.Let’s the how to count the number of lines, spaces and tabs using Lex. Example:...
In C/C++ programming, a calling convention is a set of rules that specify how a function will be called. You might have seen keywords like __cdecl or __stdcall when you get linking errors. For example:...
Given two integers a and b, how can we evaluate the sum a + b without using operators such as +, -, ++, –, …?...
The iswcntrl() is a built-in function in C++ STL which checks if the given wide character is a control character or not. It is defined within the cwctype header file of C/C++....
Hiring was for Internship. The first round was a coding test on HackerEarth. There were two questions. Both carried 100 marks each....
Data-type in simple terms gives us information about the type of data. Example, integer, character, etc. Data-types in C language are declarations for the variables. Data-types are classified as:...
In this article, we will write a C program to interchange two random rows in a matrix. Below are the inputs that will be taken from the user:...